/**
 * 专题
 */
import request from '@/utils/request'
import qs from 'qs'

/**
 * 获取重点行业
 * @param data
 * @returns {*}
 */
export const getKeyIndustry = (data) => {
  return request({
    url: '/hy/getKeyIndustry.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取行业名称-级联
 * @param data
 * @returns {*}
 */
export const getIndustryByCodeS = (data) => {
  return request({
    url: '/admin/industry/getIndustryByCodeS.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取行政区划
 * @param data
 * @returns {*}
 */
export const getDistrictByUser = (data) => {
  return request({
    url: '/admin/district/getDistrictByUser.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取污染源列表
 * @param data
 * @returns {*}
 */
export const getWryInformations = (data) => {
  return request({
    url: '/APP/Menu/getWryInformations.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取污染源列表
 * @param data
 * @returns {*}
 */
export const getRhpwkPczz = (data) => {
  return request({
    url: '/APP/Menu/getRhpwkPczz.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取入河排污口列表
 * @param data
 * @returns {*}
 */
export const getRhpwkListFun = (data) => {
  return request({
    url: '/APP/Menu/getRhpwkJdgl.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 点击河流名称的详细信息统计
 * @param data
 * @returns {*}
 */
export const getRhpwkpczzDetail = (data) => {
  return request({
    url: '/APP/Menu/getRhpwkpczzDetail.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 点击入河排污口名称的详细信息统计
 * @param data
 * @returns {*}
 */
export const getRhpwkjdglDetail = (data) => {
  return request({
    url: '/APP/Menu/getRhpwkjdglDetail.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 获取任务ID
 * @param data
 * @returns {*}
 */
export const getTaskId = (data) => {
  return request({
    url: '/APP/Menu/getTaskId.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 根据任务ID获取表信息
 * @param data
 * @returns {*}
 */
export const getMenuMobile = (data) => {
  return request({
    url: '/APP/Menu/getMenuMobile.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 根据任务ID获取历史核查意见
 * @param data
 * @returns {*}
 */
export const selectAllOptions = (data) => {
  return request({
    url: '/APP/Menu/selectAllOptions.do',
    method: 'POST',
    data: qs.stringify(data)
  })
}

/**
 * 新增审核意见
 * @param data
 * @returns {*}
 */
export const addOption = (data) => {
  return request({
    url: '/APP/Menu/addOption.do',
    method: 'POST',
    data
  })
}
